<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>班级得分</title>
<link rel="stylesheet" type="text/css" href="{*$smarty.const.PUBLIC_DIR*}css/init.css"/>
</head>
<body>
<h2>班级得分</h2>
<table>
		{**表头**}
		<tr>
			<th rowspan="2">层次</th>
			<th rowspan="2">系数</th>
			{*foreach $banjiliebiao as $banji*}
				<th colspan="3" {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>{*$banji*}班</th>
			{*/foreach*}
		</tr>
		<tr>
			{*foreach $banjiliebiao as $banji*}
				<td {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>人数</td>
				<td {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>得分</td>
				<td {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>总分</td>
			{*/foreach*}
       </tr>

	   {**表内容**}
		{*foreach $cengcishuzu as $key=>$cengci*}
		    <tr>
		    	<td>{*$key*}</td>
		    	<td>{*$cengci['系数']*}</td>
					{*foreach $cengci as $banming=>$banji*}
							{*if $cengci@index*}
								{*if $banji@index*}{**第一个元素是系数**}
								<td {*if ($banming%2)*}class="bg1"{*else*}class="bg2"{*/if*}>{*if $banji['人数']*}{*$banji['人数']*}{*/if*}</td>
								<td {*if ($banming%2)*}class="bg1"{*else*}class="bg2"{*/if*}>{*if $banji['得分']*}{*$banji['得分']*}{*/if*}</td>
								{*/if*}
							{*else*}
								{*if $banji@index*}{**第一个元素是系数**}
								<td {*if ($banming%2)*}class="bg1"{*else*}class="bg2"{*/if*}>{*if $banji['人数']*}{*$banji['人数']*}{*/if*}</td>
								<td {*if ($banming%2)*}class="bg1"{*else*}class="bg2"{*/if*}>{*if $banji['得分']*}{*$banji['得分']*}{*/if*}</td>
								<td {*if ($banming%2)*}class="bg1"{*else*}class="bg2"{*/if*} rowspan="4">{*$banjizongfen[$banming]['总分']*}</td>
								{*/if*}
							{*/if*}
					{*/foreach*}
	  	    </tr>
		{*/foreach*}
</table>
<br />
<table>
	<tr>
		<th>班级</th>
		<th>班级分</th>
		<th>单价</th>
		<th>金额</th>
	</tr>
	{*foreach $banjiliebiao as $banji*}
	   <tr>
	        <td>{*$banji*}</td>
	        <td>{*$banjizongfen[$banji]['总分']*}</td>
	        <td>{*$danjia*}</td>
	        <td>{*$banjizongfen[$banji]['总金额']*}</td>
        </tr>
	{*/foreach*}
	<tr>
        <td>合计</td>
        <td>{*$nianjizongfen*}</td>
        <td></td>
        <td>{*$sishewuruzongjine*}</td>
    </tr>
</table>
</body>
</html>